var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.dispose();
            qm.openNpc("副本_好友故事_Act1_贪婪闹事者")
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("呃嗯……神兽集团是我的……是我的……", 37, 1530520, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("她没事吗？看样子状态不是很好啊。", 57, 1530524, true, true)
            } else {
                if (status === a++) {
                    qm.sendNormalTalk_Bottom("没事。这个大婶的状态一直都不是很好。", 37, 1530050, true, true)
                } else {
                    if (status === a++) {
                        qm.forceCompleteQuest(32753);
                        qm.forceCompleteQuest(32756);
                        qm.forceForfeitQuest(33036);
                        qm.dispose();
                        qm.warp(330002119, 0)
                    }
                }
            }
        }
    }
};